package com.wei.shopping.service;

import com.wei.shopping.entrty.PageResult;
import com.wei.shopping.entrty.QueryPageBean;
import com.wei.shopping.pojo.Notices;
import java.util.List;

public interface NoticesService {
    /**
     * 添加通知
     *
     */
    void addnotices(Notices notices);

    /**
     * 查找所有通知
     * @param queryPageBean
     * @param userid
     * @return
     */
    PageResult findAllByUserId(QueryPageBean queryPageBean, String userid,String tpname);

    /**
     * 设置消息为已读
     * @param noticesid
     */
    void isread(String noticesid);

    /**
     * 获取最新消息
     * @param userid
     * @return
     */
    List<Notices> lastnotices(String userid);
}
